package com.neu.flashmall.product.mapper;

import com.neu.flashmall.product.entity.PmsSkuImages;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 50286
* @description 针对表【pms_sku_images(sku图片)】的数据库操作Mapper
* @createDate 2022-07-15 17:27:45
* @Entity com.neu.flashmall.product.entity.PmsSkuImages
*/
@Mapper
public interface PmsSkuImagesMapper {

    int deleteByPrimaryKey(Long id);

    int insert(PmsSkuImages record);

    int insertSelective(PmsSkuImages record);

    PmsSkuImages selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PmsSkuImages record);

    int updateByPrimaryKey(PmsSkuImages record);

    List<PmsSkuImages> getAllBySkuId(Long skuId);

    PmsSkuImages selectDefaultImg(Long skuId);

    int deleteBySkuId(Long skuId);
}
